package com.longyi.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum SexEnum{
    /**
     * 男
     */
    MAN("1","男"),
    /***
     * 女
     */
    WOMAN("0","女");

    /**
     * 值
     */
    @EnumValue
    private String value;

    /**
     * 描述
     */
    @JsonValue	//标记响应json值
    private String desc;

    SexEnum(String value,String desc){
        this.value = value;
        this.desc = desc;
    }
}
